package com.learn.mapper;

import com.learn.pojo.LagouToken;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @program: learn-parent
 * @description
 * @author: luffy
 * @create: 2020-09-17 23:14
 */
@Mapper
public interface LagouTokenMapper {
    @Insert("insert into lagou_token(email,token) values(#{email},#{token})")
    void addToken(String email, String token);
    @Select("select * from lagou_token where email = #{email}")
    List<LagouToken> findTokenByEmail(String email);

}
